<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>login</title>
</head>

<body>
    账号:<input><br>
    密码:<input><br>
    <button id="button1">登录</button>

</body>
<script>
    const button1 = document.getElementById('button1')
    button1.addEventListener('click', () => {
        localStorage.setItem('user', 'cookie information')
        localStorage.setItem('number',0)
    })
</script>

</html>